let uu = document.getElementById('uu_info')


fetch("http://chst.vip:1234/api/getcoupon")
    .then(body => body.json())
    .then(res => {
        // console.log(res);
        let html = ""
        res.result.forEach(item => {
            console.log(item.couponId);
            html += `
            <a href="./couponproduct.html?couponid=${item.couponId}" couponId="${item.couponId}">
              <p>${item.couponTitle}</p>
            </a>
            `

        });
        // console.log(html);
        uu.innerHTML = html
    })